package com.tsf.demo.consumer.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.Map;

@RestController
public class UserController {


	//销售
	@RequestMapping(value = "/order/getUserInfo", method = RequestMethod.GET)
	public Map getUserInfo(HttpServletRequest request) {
		Map<String,String> map = new HashMap<>();
		map.put("userId",request.getHeader("userId"));
		map.put("userName",request.getHeader("userName"));
		return map;
	}

}